﻿using System;
using System.Collections.Generic;
using System.Text;

namespace leapt.Common.Tools
{
    /// <summary>
    /// 通过对象读取appsettings.json 
    /// </summary>
    public class WebApiOption
    {
        public const string CORS_POLICY_NAME = "CorsSPolicy";

        public DBOption DB { get; set; }
        public AuthConfig Auth { get; set; }
    }

    public class DBOption
    {
        public string Type { get; set; }
        public string ConnectionString { get; set; }
        public string ReadingConnectionString { get; set; }
        public string WritingConnectionString { get; set; }
    }

    public class AuthConfig
    {
        public string AuthorityUrl { get; set; }
    }
}
